package net.roseparadise.service.impl;

import java.util.List;

import net.roseparadise.dao.NoticeDAO;
import net.roseparadise.model.Notice;
import net.roseparadise.service.NoticeService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NoticeServiceImpl implements NoticeService{
	
	@Autowired
	private NoticeDAO noticeDAO;

	public void save(Notice transientInstance){
		noticeDAO.save(transientInstance);
	}	
	
	public List<Notice> listStudioNotice(){
		return noticeDAO.findByIsstudio("Y");
	}
	
	public List<Notice> getPortletContent(){
		return null;
	}
}
